<!--
 * @Author: huangyanming
 * @Date: 2021/01/23 08:32:53
 * @LastEditors: huangyanming
 * @LastEditTime: 2021/01/23 08:36:27
 * @Description: 描述
-->

<template>
  <Panel title="头部轮播图" :class="$style.panel">
    <section :class="$style.content">
      <Slider :cname="$style.slider" :items="items"></Slider>
    </section>
  </Panel>
</template>

<script>
import Panel from "../core/panel.vue";
import Slider from "../core/slider.vue";
export default {
  data() {
    return {
      items: [
        {
          href: "ious",
          src:
            "//img12.360buyimg.com/jrpmobile/jfs/t8491/303/504628479/60643/100648de/59a94358N92475fca.jpg?width=750&height=320",
        },
        {
          href: "home",
          src:
            "//img12.360buyimg.com/jrpmobile/jfs/t8437/321/1758527686/40952/f66d552f/59bf1f41N50d846f9.jpg?width=750&height=320",
        },
      ],
    };
  },
  components: { Slider, Panel },
};
</script>

<style lang="scss" module>
@import "../../css/element.scss";
.panel {
  @include panel;
  & > h4 {
    display: none;
  }
  .content {
    .slider {
      margin-top: 120px;
      img {
        width: 100%;
      }
    }
  }
}
</style>
